<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>uitags</title>
    <t:base type="jquery,easyui,tools,autocomplete"></t:base>
    <SCRIPT type="text/javascript">
        function parse(data){
            var parsed = [];
            $.each(data.rows,function(index,row){
                parsed.push({data:row,result:row,value:row.id});
            });
            return parsed;
        }
        /**
         * 选择后回调
         *
         * @param {Object} data
         */
        function callBack(data) {
            $("#user").val(data.userName);
        }

        /**
         * 每一个选择项显示的信息
         *
         * @param {Object} data
         */
        function formatItem(data) {
            return data.userName + "-->" + " " + data.realName;
        }

        function setContentc(){
            /*  alert("表单提交前想干点啥呢");*/
        }
        function test(){
            /* alert("表单提交后要干点啥呢");*/
        }

    </SCRIPT>
</head>
<body>
<t:formvalid formid="formobj" dialog="true" layout="div" callback="test" action="scrwglController.do?doedit&p=1" beforeSubmit="setContentc">
    <input id="pk_task" name="pk_task" type="hidden" value="${t1.pk_task }"/>
    <input id="pk_tasknr" name="pk_tasknr" type="hidden" value="${t1.pk_tasknr }"/>
    <fieldset class="step">
        <div class="form">
            <label class="Validform_label">传输数据名称： </label>
            <t:dictSelect field="pk_dformat" type="list"
                          dictTable="t_jk_dformat" dictField="pk_dformat" dictText="fd_data" defaultVal="${t1.pk_dformat}" hasLabel="false"  title="传输数据" ></t:dictSelect>
            <span class="Validform_checktip"></span>

        </div>

    </fieldset>
</t:formvalid>
</body>
</html>
<t:authFilter />






